(() => {
    // 字符串
    let name = 'yejing';
    let addr = "guangzhou";
    let str = `hello ${name}`;
    console.log(123, str);
    // 布尔
    let b = false;
    console.log(b);
    // 数组
    let arr = ['a', 'b', 'c'];
    let arr2 = [2, 3, 4, 5, 6];
    // 枚举
    let Color;
    (function (Color) {
        Color[Color["Red"] = 0] = "Red";
        Color[Color["blue"] = 1] = "blue";
        Color[Color["yello"] = 2] = "yello";
    })(Color || (Color = {}));
    // 元祖
    let tu = ['name', 1];
    // any 和 unknown
    // let 和 const
    // 解构
    let input = [1, 2];
    let [first, second] = input;
    console.log(first); // outputs 1
    console.log(second); // outputs 2
    function f([first, second]) {
        console.log(first);
        console.log(second);
    }
    f(input);
})();
